# _*_ coding utf-8 _*_
# george
# time: 2025/1/3下午2:12
# name: code.py
# comment:
from flask import Flask,request,jsonify

app = Flask(__name__)


@app.route("/index",methods=["POST","GET"])
def index():
    age = request.args.get("age")
    pwd = request.args.get("pwd")
    print(age,pwd)
    xx = request.form.get("xx")
    yy = request.form.get("yy")
    print(xx,yy)
    return jsonify({"status":True,"data":"bbb"})


@app.route("/home")
def home():
    return "失败"


if __name__ == '__main__':
    app.run()
